﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderList.aspx.cs" Inherits="CNVP.JShop.Web.Member.OrderList" %>
<%@ Register src="Footer.ascx" tagname="Footer" tagprefix="uc1" %>
<%@ Register src="Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="LeftNav.ascx" tagname="LeftNav" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>订单列表</title>
    <link href="css/Global.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/Fonts.css" rel="stylesheet" type="text/css" media="all"  />
<link href="css/Style.css" rel="stylesheet" type="text/css" media="all" />
<link href="../CSS/MemberCenter.css" rel="stylesheet" type="text/css" media="all" />
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="js/procp.js"></script>
</head>
<body>
    <form id="form1" runat="server">
<uc1:Header ID="Header1" runat="server" />
<div class="Width MBody clearfix">
<uc1:LeftNav ID="LeftNav1" runat="server" />

<div class="MRight">
                <div class="MRightTitle"><p>订单列表</p></div>
                <div class="MRightBox">
                <asp:label id="OLb" runat="server"></asp:label>
                <b style="color:White;">关键词：</b>
                <asp:TextBox ID="txtkey" runat="server"></asp:TextBox>
                <asp:Button ID="btSearch" runat="server" Text="搜 索" onclick="btSearch_Click" />
                        <asp:Repeater ID="rpList" runat="server" 
                        onitemdatabound="rpList_ItemDataBound" onitemcommand="rpList_ItemCommand" >
                            <HeaderTemplate>
                            <table width="98%" class="ListTable">
                                <tr>
                                    <th>订单号</th>
                                    <th>产品</th>
                                    <th>订单总额</th>
                                    <th>收货人</th>
                                    <th>订单状态</th>
                                    <th>支付方式</th>
                                </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td style ="width:150px;"><a href='OrderShow.aspx?id=<%#Eval("oID")%>' target="_blank"><font color="red"><%#Eval("oOrderNum")%></font></a></td>
                                    <td><%#Eval("oOrderProductsImg")%></td>
                                    <td><%#Eval("oOrderTotalAmount")%></td>
                                    <td><%#Eval("oGetTrueName")%></td>
                                    <td>
                                        <a href='OrderShow.aspx?id=<%#Eval("oID")%>' target="_blank"><%#Eval("oOrderState")%></a>
                                        <asp:Label ID="lbOrderStateNO" runat="server" Text='<%#Eval("oOrderStateNO")%>' CssClass="Display"></asp:Label>
                                        <asp:LinkButton ID="linkBTCanel" runat="server" CommandName="Canel" CommandArgument='<%#Eval("oID")%>' ForeColor="Red">取消</asp:LinkButton>
                                        <asp:LinkButton ID="linkBTOK" runat="server" CommandName="OK" CommandArgument='<%#Eval("oID")%>' ForeColor="Red">确认收货</asp:LinkButton>
                                    </td>
                                    <td><%#Eval("oPayWay")%></td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                             <asp:Literal ID="lblEmpty" Text="<tr><td colspan='6'>没有符合条件的条目!</td></tr>" runat="server" Visible='<%#bool.Parse((rpList.Items.Count==0).ToString())%>'></asp:Literal>
                                </table>
                            </FooterTemplate>
                    </asp:Repeater>
                    <asp:Label ID="LabProlb" runat="server"></asp:Label>
                    <div id="paging" runat="server"></div>

                </div>

</div>
</div>
    <uc1:Footer ID="Footer1" runat="server" />
    </form>
<script type="text/javascript">
    jQuery(document).ready(CheckUserLogin); 
</script>
</body>
</html>
